import {binarySearch} from "../util";

export default {
  reCalcDatalist({commit,state,getters}){

    let startTime = state.min * state.maxTimestamp
    let endTime = state.max * state.maxTimestamp

    let startIndex = binarySearch(state.timestamps,0,state.timestamps.length - 1,startTime)
    let endIndex = binarySearch(state.timestamps,0,state.timestamps.length - 1,endTime)
  }
}